#ifndef STEPMOTOR_H_INCLUDED
#define STEPMOTOR_H_INCLUDED


#include "mhdef.h"
#include "act_types.h"
#include "udp.h"

#define ID_MOTOR1       0x07
#define ID_MOTOR2       0x08
#define ID_MOTOR3       0x09

#if (MH_SYS_CAM == 1)
#define ID_MOTOR1_R     0x14
#define ID_MOTOR2_R     0x15

#else
#define ID_MOTOR1_R     0x12
#define ID_MOTOR2_R     0x13
#define ID_MOTOR3_R     0x14
#endif


int stepmotor_exec(MH_UDP *pudp, int type, short *delta, short *find_zero, int num);
int stepmotor_reset(MH_UDP *pudp, int type, short *find_zero, int num);

#endif // STEPMOTOR_H_INCLUDED
